# 输入姓名、手机号，并判断手机号的正确性（11位数字），如果手机号不正确，抛出对应的异常
# while True:
#     try:
#         name = input("请输入姓名：")
#         tel = input("请输入电话号码：")
#         if not tel.isdigit():
#             raise Exception("电话号码只能由数字组成")
#         if len(tel) != 11:
#             raise Exception("电话号码只能是11位，不要多也不要少")
#     except Exception as e:
#         print("输入的信息有误，请重新打开输入，错误信息：",e)
#     else:
#         print(name,tel)

# while True:
#     try:
#         name = input("请输入姓名：")
#         tel = input("请输入电话号码：")
#         if not tel.isdigit():
#             raise Exception()
#         if len(tel) != 11:
#             raise Exception()
#     except Exception as e:
#         print("输入的信息有误，请重新打开输入，错误信息：",e)
#     else:
#         print(name,tel)

# while True:
#     try:
#         name = input("请输入姓名：")
#         tel = input("请输入电话号码：")
#         if not tel.isdigit():
#             raise Exception("电话号码只能由数字组成")
#         if len(tel) != 11:
#             raise Exception("电话号码只能是11位，不要多也不要少")
#     except Exception as e:
#         print("输入的信息有误，请重新打开输入，错误信息：",e)
#         raise
#     else:
#         print(name,tel)

# assert 3 > 5 ,"三小于五"

# while True:
#     try:
#         score = int(input("成绩，0~100："))
#         assert score <= 100 and score >= 0 , "成绩处于0~100之间"
#         # if score >= 100 and score <= 0:
#         #     print("成绩处于0~100之间")
#         if score < 60 :
#             print("E")
#         elif score < 70:
#             print("D")
#         elif score < 80:
#             print("C")
#         elif score < 90:
#             print("B")
#         else:
#             print("A")
#     except Exception as e:
#         print("....",e)